package com.itmk.business.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
@TableName(value = "product")
public class Product {
    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long productId;
    private String productName;
    private String productSpecification;
//    成分
    private String material;
//    门幅
    private String width;
//    克重
    private String weight;
//    尺码
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private double size;
//    备注
    private String detail;
//    分类
    private Integer categoryId;

//    分类名称
    @TableField(exist = false)
    private String categoryName;

//    货号
    private String productNum;

}
